Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Plugin.AddUniqueError with dedupe behavior #215

Conversation

atc0005
Copy link
Owner

@atc0005 atc0005 commented Jun 23, 2023

In contrast to Plugin.AddError which does not provide deduplication of errors before growing the collection, the Plugin.AddUniqueError method does provide deduplication.

The dedupe behavior is provided by case-insensitive comparison of the error string for the provided error against existing errors already in the collection.

fixes GH-214

In contrast to Plugin.AddError which does not provide
deduplication of errors before growing the collection, the
Plugin.AddUniqueError method *does* provide deduplication.

The dedupe behavior is provided by case-insensitive
comparison of the error string for the provided error against
existing errors already in the collection.

refs GH-214
@atc0005 atc0005 added the enhancement New feature or request label Jun 23, 2023
@atc0005 atc0005 self-assigned this Jun 23, 2023
@atc0005 atc0005 merged commit 1b923de into master Jun 23, 2023
@atc0005 atc0005 deleted the i214-provide-method-to-grow-errors-collection-with-dedupe-behavior branch June 23, 2023 10:26
@atc0005 atc0005 added this to the v0.16.0 milestone Jun 23, 2023
@atc0005 atc0005 added the errors label Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request errors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add method for growing errors collection with deduplication behavior
1 participant